﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="type_add.aspx.cs" Inherits="DataBaseManage_AddType" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>添加栏目类型</title>
    <style type="text/css">
body {
	background-color:#333333;
	font-size: 12px;
	color: #333333;
	margin:0px;
	line-height:20px;
}
    </style>
    <script language="javascript" type="text/javascript">
    function CheckData()
    {
     var val=document.getElementById("txtTypname").value;
     if(val.replace(/(^\s*)|(\s*$)/g,"").length<=0){
     alert("栏目类型名称不能为空！");
     return false;
     }
     var val2=document.getElementById("txtTemp").value;
     if(val2.replace(/(^\s*)|(\s*$)/g,"").length<=0){
     alert("后台维护页面不能为空！");
     return false;
     }
    }
    </script>

    </head>
<body>
<table width="100%" height="600" border="0" align="left" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td height="414" align="left" valign="top" class="rightbg"><table width="100%" height="489" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="26"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="2" bgcolor="#A49B81">&nbsp;</td>
          </tr>
          <tr>
            <td height="22" background="../images/position_bg.gif" bgcolor="#EEF6FE" class="subnav" style="background-repeat: repeat-y; background-position: left; padding-left: 6px; padding-top: 3px;">
              <asp:Label ID="headers" runat="server" />
            </td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td height="30"></td>
      </tr>
      <tr>
        <td height="410" align="left" valign="top" style="padding-left:10px;">
<table width="90%" height="183" border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight="#2583BC" bordercolordark="#ffffff">
    <form id="form1" runat="server">
 <input type="hidden" name="upid" value="0">
 <input type="hidden" name="availabilityflag" value="">
          <tr>
            <td width="100%" height="181" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr bgcolor="#2583BC">
                <th align="left">　　请填写字典信息</th>
                </tr>
            </table>
              <table width="100%" height="117" border="0">
                <tr>
                  <td  height="20" colspan="3"></td>
                </tr>
                 <tr>
                  <td width="30%" height="33" align="right"><font color="#ff0000">*</font>栏目类型名称：</td>
                  <td width="3%">&nbsp;</td>
                  <td width="67%">
                      <asp:TextBox ID="txtTypname" runat="server" MaxLength="25" ></asp:TextBox>
                        </td>
                </tr>                 
                
                <tr>
                  <td width="30%" height="33" align="right"><font color="#ff0000">*</font>后台维护页面：</td>
                  <td width="3%">&nbsp;</td>
                  <td width="67%">
                      <asp:TextBox ID="txtTemp" runat="server" MaxLength="122" ></asp:TextBox>
                      </td>
                </tr>                  
                 
                <tr>
                  <td width="30%" height="33" align="right">栏目描述：</td>
                  <td width="3%">&nbsp;</td>
                  <td width="67%">
                      <asp:TextBox ID="txtexplain" runat="server" MaxLength="500" ></asp:TextBox>
                      </td>
                </tr>                  
                 
                <tr>
                  <td height="33" align="right"></td>
                  <td>&nbsp;</td>
                  <td height="35" align="left">
                      <asp:Button ID="btnSubmit" runat="server" onclick="btnSubmit_Click" OnClientClick="return CheckData();" Text="提交" />
                      <input type="reset" value="重置" />
                      <asp:Button ID="Button3" runat="server" onclick="Button3_Click" Text="返回" />
                    </td>
                </tr>
              </table>
              
              </td>
          </tr>
            </form>
        </table>        
        </td>
          </tr>
        </table>    
           </td>
      </tr>
    </table>
    </td>
  </tr>
</table>

</body>
</html>
